﻿using System;
using System.Windows.Media;
using System.Windows.Media.Imaging;

namespace Oxage.Common
{
	internal class ResourceHelper
	{
		public static ImageSource GetImage(string relativePath)
		{
			//TODO: Get "cnc-studio" from assembly name
			var uri = new Uri(@"pack://application:,,,/cnc-studio;component/" + relativePath, UriKind.RelativeOrAbsolute);
			return BitmapFrame.Create(uri);
		}
	}
}
